import 'package:fstudy/src/config/prod_config.dart';

import 'dev_config.dart';

abstract class AppConfig {
  String deviceId = '';
  String aiApiUrl = '';
  String aiApiKey = '';
  String conversationId = '';

  factory AppConfig.fromEnv() {
    const env = String.fromEnvironment('APP_ENV', defaultValue: 'dev');

    switch(env) {
      case 'prod': return ProdConfig();
      default: return DevConfig();
    }
  }

  bool isDev();
}